Move deprecated files into legacy folder