Move all associations to parent model. #1512.