Moved library-functions to model, model manager or templatetag modules.