Fixes #8013: Rely on factory_girl_rails and mocha version from Foreman.