On the decomposition of prefix codes