Divided class initialization into sub-methods.