Extension hook for code that needs to execute immediately before registering a model.