Refactoring business logic out of Django Views into reusable classes so that the logic can be consistently used from different…