Use Rect in "plain" interface.
Create "plain" interface.
Add module for working with rectangle coordinates.
Separate modules.