Architectural refactorings.

Introduced BindingGroups.