JVM backend housekeeping - remove unused vars, imports.