Refactoring sterling frame