I feel like this should be done in modules/generate_assertion.js, it doesn't seem to make much sense here.