Refactor Task List comment feature

 - Get rid of most statics
 - Refactor the code to be more type-safe