Refactoring, remove duplicated code