If not removed, rock with Confederate flag should be factored into custody dispute, appeals court says