REFACTORING Revisited method factorization in order to avoid code duplication