Refactor: controller: simplify default handling for private agent parameters
This is an efficiency gain since the setting of default private parameters only
has to be done once when meta-data is read rather than every time an action
result is recorded, but mainly this is to make the code simpler and easier to
follow.