refactoring: extracted method (#13)