Refactor constraints

* Do not pass root view to ConstraintFormatter because it calls
* setTransatesAutorisize and this was causing the view's content size to be
* zero