This is for two reasons: - No need to add the endpoint every time the plugin loads. - The old code didn't flush the rewrite rules, making the endpoint non-functional until something did (like the user saving the permalink settings)
method