[bucket] Use 4.0+ decorators

Instead of `<func>.rule` and `<func>.priority`, use `@rule` and `@priority` decorators.

Tested and seems fine, but others are encouraged to test before this gets pulled.