This is actually a reasonably generic function, so I'd suggest the other direction, i.e., change all reference to "frame" to just "node" or container :)