Constify necessary parameters and split up long lines.