Allow defining interfaces using closure-map style