Refactored video module. Extracted class method and moved into the video module.

module.