Change type to mapper_type in create_mapper module