Move initializing of properties from initialize() to constructor.

Closes #3776