Refactoring: use selector namespaces. Extract initialization steps into methods.