Factorize detail and spheremap