colo: rewrite build_{meth,attr}_tables