Refactor first pass to support scalable mode_info size

Replace hard coded assumptions of mode_info size with table fetch.
The codebase coding statistics remain identical. This prepares to
introduce 4x4 mode_info array.

Change-Id: I5d75b86b7e7aa5bc7104c5f6f0b326d6ad0f67bb
1 file changed