Reduce duplication by creating withEntryInput function
Reduce duplication by creating withEntry function
Normalize indentation
Move business logic out of action
Create a function for updating entries
Soft delete entries
Remove unnecessary hiding imports