simplify Closure module
simplify Erlang module