Extracted PageBase.cs and added karma config file