Remove some deprecated params (java 8)