Fifa dumps legal chief after MasterCard ruling