It looks like there was an existing panel in the wall, which has been covered by the pantry cabinet, with circuits extended to the new panel, probably to make it (marginally) more accessable..

The pantry cabinet looks old, as do the shelves..

I only see one piece of flex, is everything including the feeder in there?

clearance? we don't need no stinking clearance.. (or workspace..)

How would you fix this, besides ripping out the pantry cabinet?