Refactored format-specific modules.
Refactored BSP-related modules.