Refactor rules: Favour composition over inheritance