move runnable selection in its own method
Authored by: thibautd 2013-12-19
Parent: [r27267]
Child: [r27269]