Make removeDom function inline; validate to and from of move function.

ACE-61