Where can I store common custom validations?

you also to use validate_change ( Ecto.Changeset — Ecto v3.14.0 )

There is a reference in this post Validates not nil of fields only when they exist