refactor move_slapdd code