Factor out constraint editing

Test Plan:
hack hack hack
Add bounding to points and lines

Test Plan:
hack hack hack