Extract formatting records code