Move RectangleController to its own file.