Remove copied location template code.