Remove unnecessary foreign-keys in models