Metaprogramming In Lean Processes