Code quality improvement batch #2 (Minecraft$OS refactor, dead code removal)