Make factories an instance variable