Metaprogramming inherited apps