Refactor sync module into multiple files, splitting item and comment sync code