Correcting errors after refactoring usecases to have a result attribute