remove factories spec
remove factory specs and fix deprecations