refactoring legal_design.haml