Remove unnecessary nested list.