1. A method, comprising: grouping test steps derived from one or more application test cases into multiple candidate sub-routines based on a manner in which one or more user interface elements are accessed in each of the test steps, wherein said grouping is executed by a candidate sub-routine computation module of a computing device; refining the multiple candidate sub-routines to generate a given set of one or more sub-routines, wherein said refining is executed by a sub-routine refinement module of the computing device; and refactoring the one or more application test cases by replacing the test steps in the one or more application test cases with one or more calls to the given set of one or more sub-routines, wherein said refactoring is executed by a test case refactoring module of the computing device.