How to normalize function params

As mentioned in the article, the author is suggesting using Ecto’ schemaless changesets for this. I think the normalize function can be written in a pretty generic way.