Move syncer event handlers into syncer module