Refactor, modification du template method