I have these methods in here because the way Module entity is stored as hash is not generic.