Turn from_path into module function.