Definition repository will only accept closures