Convert trademapper.mapper into module format