Move geometry rendering code to another file.