Optimizing Code for Weird Returning Type - Effect Community