centralize isServer flag on factories