Move `getChangeDetectorDefinitions` out of `ProtoViewFactory` since it does not depend on any state in that object.