Issue #2142123 by pcambra: Adapt moveChildren function to match its interface.