deque: replace method reference by pattern Command

I'm really disapointed about this change.