Refactoring create free slots on appointments controller