Can we move this to a private method? Perhaps 'merged_attributes'?