Moving code into separate function in the action class so it can be
overridden