Move preferences and remove useless