Refactor accepts_nested_attributes_for