A hook on xblock creation or the support for a function to the "default" parameter would be a good addition.