Fixing up the view factory creation api.