Metaprogramming at Work in Automated Manufacturing