Replace some code with a definition