Factor out math headers