Refaktor broker