Refactoring Pratilipi and Auth API.