Removing rest framework dependencies from application