Gave up on metaclasses, using explicit relationship declarations instead