Refactoring to the maxering