refactoring: constraint_handler: changed functions to class methods