Start of a series of refactoring using NamedRegistry.

- Eventually, this will allow for different types of detectors
  and descriptors.