CoreParserFunctions: Use Title::inNamespace instead of manual comparison