A simple way to wrap modules that expose their functionality via promises in additional behavior