Move register() to constructor.

Closes #3583911

Merge request reports

Loading