Work in progress: move code used in eip_preferences to the backend