Refactor constants and make plugins declare a manifest