maybe call it create_type(...)?