Moved stereotypical stack manipulations to be defined inside the stack manipulation interface.