Refactor foursquare action