move annotation writer to own class