Revert "Multiple realm support"

This reverts commit ffd975e2ba1d6c9f7cd0c10e4c8886a735f340fc.