Extract object creation to their own methods.