Refactor: Reorder parameters to "onlyStack" function.

Looks more Haskell-y by making several functions that use it point-free.