Decoupled the large script with distinct files and purpose. Signed-off-by: Sébastien Han <seb@redhat.com>