Use `cls` argument in `from_*` functions.