Moved some utility functions to SQLAlchemy-Utils