Refactoring should_pivot? and only_wall? methods