Remove unnecessary list creation.