Refactoring: replace cfg param with subtypes of actionrequest