Remove unnecessary headers method