cleaning up theme declarations and Form instantiation.