Expose class constructors to routes.