Refactor renamed and introduced interface for registering.