Replace most file-editing with templating Constants.java.