Refactor Controller class by naming literal values