factor out commonality from cake/spring comparison modules