Refact forum code.