Extract a new class.

Move problem related methods out of inserter.
Move annotation monitoring to a new class.
Move resource syncing to a new class.