Remove redundant return Nones.