remove redudunt code and move transcluded child