Refactoring and introducing `adjust_rulers` method