Move relation-arrays to relations.js with a hash for each model-type.