Extract common declarations file and common bootstrap