Reduces code duplication on SOP and SAT setters by creating some static and private methods to check values.