refactoring: extracted object creator