Clean php syntax in old files and remove deprecated files.