Replace relationship chaining with helper functions to avoid chained try methods and avoid logic in views