Abstract out the main element