Wrap code into anonymous function expression
Unify translate operations to groups and shapes