Use keyword argument for boolean flags

Using keyword arguments makes the intent of the code clearer, due to
the fact that a name is attached to a boolean value, making the
reasoning about the code easier.

Change-Id: I0dd05fa521ed8bbaf1c6dbd7a3e554384642c1f4