Re-factored if command execution visitor phase.