FeatureRef: Towards Effective Refactoring of Features. Oliveira, J., Colanzi, T. E., Garcia, A., Bibiano, A. C., Assunção, W. K. G., de Mello, R., Silva, C., Uchôa, A., Oliveira, A., Correia, J., & Mongiovi, M. In Proceedings of the 40th Brazilian Symposium on Software Engineering (SBES), Porto Alegre, RS, Brasil, 2026. Sociedade Brasileira de Computação (SBC).
abstract   bibtex   
Software projects comprise multiple features that capture both functional and non-functional requirements. However, many relevant features emerge over time and, as such, are not modularized into modules, such as classes or methods, in the original design. Their effective management requires proper modularization through refactorings as software evolves. Poor feature modularization results in design problems (DPs), such as features whose implementations are tangled with each other or scattered across multiple files. Addressing these DPs would benefit from automated recommendations of feature refactoring. However, existing techniques do not explicitly support feature-driven modularization refactoring. Thus, in this paper, we propose FeatureRef, an automated technique to assist developers in spotting and refactoring feature-related DPs. FeatureRef detects DPs by relying on data from the project design, the source code, and automatically produced mappings of features in existing program files. The technique uses a topic modeling algorithm to automatically determine how existing features are reified in project files. Then, FeatureRef combines feature mappings with indicators of poor structural code quality to find DPs. Finally, to create refactoring recommendations, FeatureRef relies on a novel refactoring recommendation strategy that combines refactoring heuristics with search-based optimization. We evaluated FeatureRef through an empirical study with six open-source projects. The results show that our approach removes nearly three times more feature-related DPs compared to a state-of-the-art baseline that strictly relies on structural metrics to guide the refactoring of feature-related code smells, such as God Class, representing feature tangling, and Feature Envy, representing feature scattering.
@inproceedings{Oliveira2026FeatureRef,
author    = {Oliveira, José and Colanzi, Thelma E. and Garcia, Alessandro and Bibiano, Ana Carla and Assunção, Wesley K. G. and de Mello, Rafael and Silva, Caio and Uchôa, Anderson and Oliveira, Anderson and Correia, João, Everton L. G. and Mongiovi, Melina},
title     = {FeatureRef: Towards Effective Refactoring of Features},
booktitle = {Proceedings of the 40th Brazilian Symposium on Software Engineering (SBES)},
year      = {2026},
publisher = {Sociedade Brasileira de Computação (SBC)},
address   = {Porto Alegre, RS, Brasil},
abstract  = {Software projects comprise multiple features that capture both functional and non-functional requirements. However, many relevant features emerge over time and, as such, are not modularized into modules, such as classes or methods, in the original design. Their effective management requires proper modularization through refactorings as software evolves. Poor feature modularization results in design problems (DPs), such as features whose implementations are tangled with each other or scattered across multiple files. Addressing these DPs would benefit from automated recommendations of feature refactoring. However, existing techniques do not explicitly support feature-driven modularization refactoring. Thus, in this paper, we propose FeatureRef, an automated technique to assist developers in spotting and refactoring feature-related DPs. FeatureRef detects DPs by relying on data from the project design, the source code, and automatically produced mappings of features in existing program files. The technique uses a topic modeling algorithm to automatically determine how existing features are reified in project files. Then, FeatureRef combines feature mappings with indicators of poor structural code quality to find DPs. Finally, to create refactoring recommendations, FeatureRef relies on a novel refactoring recommendation strategy that combines refactoring heuristics with search-based optimization. We evaluated FeatureRef through an empirical study with six open-source projects. The results show that our approach removes nearly three times more feature-related DPs compared to a state-of-the-art baseline that strictly relies on structural metrics to guide the refactoring of feature-related code smells, such as God Class, representing feature tangling, and Feature Envy, representing feature scattering.}
}

Downloads: 0