Rewrite composed geometry code