Trying to answer http://stackoverflow.com/questions/20730837/templates-and-cyclic-dependency