This paper shoulda just done a study on elixirs usage_rules?
https://github.com/ash-project/usage_rules