Refactoring UseCases to use the result attribute