Strict conversion and code cleanup for exports module