Split the metadata in a separate file

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>