core: clean unused "main" blocks

Change-Id: Id6a539d86c11a02106e10b0ad24916822bcaf664
Signed-off-by: Roy Golan <rgolan@redhat.com>