Removing useless imports and swapping messages for phrases