Pulled another helper function out of get-module-code.