Remove obsolete code from relation registry
Use abstract Registry class to DRY-up registries

closes #47
Flatten class structure