Merge "Simplify and refactor out api code for getting title or page id"