Added an abstract class for PageFactory and changed `mustCreatePage`
method to `isTransient`.