Deleting duplication between find and findOr404 methods.