Refactoring Duplicated Method