Pull out composite type functions to CompositeTypeManager
Don't fail if no HttpContext.Current