Change Tasks <> Sub-Tasks

Occasionally a sub-task involves more work than I expected so I want to convert it to a task.
Occasionally a task involves less work than I expected so I want to convert it to a sub-task.

Currently the only way to do this is to delete the task / sub-task and then create a replacement sub-task / task.

Thanks