Remove the getPermalinkFromPage function on the permalink object to reduce coupling.