How to make your modules more generically useful and easier to test.