Add a constants parameter to the view factory