Windup 102: Refactor java legacy rules

This is fine, but we do need to do something to extract this into a readable format. It's a little crazy to do stuff like this in Java, I completely admit :)