Prepare for publishing. Extract common build settings.