Reducing the surface area of exported functions