Remove unnecessary Java class