Clean up Grid Code.