Remove superfluous code
Extract private method to get the docblocks of test class, test method, and template methods
Eliminate (hopefully) superfluous code