A great refactor of tequila framework