Hotfix for extracting relationData from models.