Removing leftover entityreference dependency