Refactor and test : retrieve metadata from mml features