Move comment-related helper methods to one module.