It is unlawful to remove a person from an office or position of public trust because such person has not complied with any law, charter, or regulation prescribing an additional test or qualification for such office or position of public trust, other than tests and qualifications provided for under civil service and retirement laws, whenever such person: