Refactoring: removed code duplication