Best way to combine Bodyguard.permit and Repo.insert

Figuring out if it’s new or edit is not the problem. You can do that by the number of parameters. But sometimes I need to load some more attributes for the form, not only the changeset and I wonder how to do that best in a dynamically way