Refactor local cluster message handling.