Refactor indent()