Refactored Kirby instance handling in page class