Refactored the video output configuration mechanism.