Just like we have Business Functions for the unfamous "Mind Destroying Expressions" (MDX) ;-)
https://support.timextender.com/hc/en-us/articles/210439443-Business-Function-Library
It will be pretty cool to offer the same library parametrization support for DAX that's available for MDX on the OLAP MD semantic model.