Split out device.[hc]