encapsulated command parameters into its own class (refactoring)