Refactor form theme to an external file.