insertOrderedList: Refactoring

* Renamed wrapByOrderedList to execInsertListCommand
* Separate processes in execInsertListCommand into some functions (processList, processNodeInList and so on)
Yeah, it is because I added some functions. While I understand we need to reduce lines, I acknowledge I don't know how to do.