Does this do anything different than the removed `_generate_subtasks` function?