Move interface creation into a separate module