Code factorisation in FrontCache