Remove duplication from Security::CiConfiguration GraphQL mutations

Proposal

The purpose of this issue is to remove the duplication from the Security::CiConfiguration GraphQL mutations, since the following files all contain similar logic:

This can be achieved by creating a new superclass for the above classes to inherit from, or it could be implemented using modules which are included in each of the above classes.