A backwards-compatible way of streamlining chained function calls in a readable and functional manner